{include file="public/head" /}
  
  <body>
  <table class="layui-table"  id="table">
        <thead>
          <tr>
            
            <th style="text-align: center; font-size: 16px;">小区名称</th>
            <th style="text-align: center; font-size: 16px;">完整门牌</th>
            <th style="text-align: center; font-size: 16px;">业主姓名</th>
            <th style="text-align: center; font-size: 16px;">费用类型</th>
            <th style="text-align: center; font-size: 16px;">账期</th>
            <th style="text-align: center; font-size: 16px;">应收金额</th>
            <th style="text-align: center; font-size: 16px;">创建时间</th>
            <th style="text-align: center; font-size: 16px;">截止时间</th>
            <th style="text-align: center; font-size: 16px;">付款类型</th>
            <th style="text-align: center; font-size: 16px;">付款时间</th>
            <th style="text-align: center; font-size: 16px;">账单状态</th>
            <th style="text-align: center; font-size: 16px;">同步状态</th>
            <th style="text-align: center; font-size: 16px;">票据号</th>
            <th style="text-align: center; font-size: 16px;">发票号</th>
            <th style="text-align: center; font-size: 16px;">发票状态</th>
            <th style="text-align: center; font-size: 16px;">备注</th>
           
            </tr>
        </thead>
        <tbody>
          {foreach $list as $val}
          <tr>
            
            <td style="text-align: center;">{$val.community_id}</td>
            <td style="text-align: center;">{$val.room_address}</td>
            <td style="text-align: center;">{$val.owner_name}</td>
            <td style="text-align: center;">{$val.cost_type}</td>
            <td style="text-align: center;">{$val.acct_period}</td>
            <td style="text-align: center;">{$val.bill_entry_amount}</td>
            <td style="text-align: center;">{$val.release_day}</td>
            <td style="text-align: center;">{$val.deadline}</td>
            <td style="text-align: center;">{$val.pay_type}</td>
            <td style="text-align: center;">
              {if $val.status == 'TRADE_SUCCESS'}
              {$val.gmt_payment}
              {/if}
            </td>
            <td style="text-align: center;">
              {if $val.status == 'TRADE_SUCCESS'}
                已付款
              {elseif $val.status == 'UNDER_PAYMENT'}
                待支付
              {elseif $val.status == 'WAIT_PAYMENT'}
                待付款
              {elseif $val.status == 'OUT_OF_DATE'}
                已逾期
              {/if}
            </td>
            <td style="text-align: center;">
              {if $val.tongbu == '1'}
                已同步
              {elseif $val.tongbu == '2'}
                未同步
              {elseif $val.tongbu == '3'}
                已同步完成
              {/if}
            </td>
            <td style="text-align: center;">{$val.ticket}</td>
            <td style="text-align: center;">{$val.invoice_serial_num}</td>
            <td style="text-align: center;">
              {if $val.invoice_type == '1'}
                已开发票
              {elseif $val.invoice_type == '2'}
                已退票
              {else}
              {/if}
            </td>
            <td style="text-align: center;">{$val.remarks}</td>
            
          </tr>
          {/foreach}
        </tbody>
      </table>
    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
        
          //自定义验证规则

    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>